﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.API;
using ObjectPersistence;
using KYO.DAL;

public partial class Modules_Mod_Contact_ContactMain : ModuleBase
{
    ContactAssembler contactService = new ContactAssembler();
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        Contact1.SubmitClick += new EventHandler(Contact1_SubmitClick);
        base.OnInit(e);
    }

    void Contact1_SubmitClick(object sender, EventArgs e)
    {
        Contact cantact = new Contact();
        cantact = Contact1.UpdateModel(cantact);
        contactService.MakePersistent(cantact, true);
    }
}
